Python appium webdriver.Remote errors with 'NoneType' object has no attribute 'to_capabilities'